package service;


import po.Admin;

import java.util.List;

public interface AdminService {

    boolean addAdmin(Admin admin);

    boolean editAdmin(Admin admin);

    boolean updateAdminAvatar(Admin admin);

    boolean existAdmin(String admin);

    boolean veritypasswd(String username, String password);

    boolean deleteAdmin(Integer id);

    List<Admin> allAdmin(Admin admin);

    Admin adminOfId(Integer id);

    Admin loginStatus(String username);

    // 修改管理员状态
    Boolean isEnableAdmin(Integer id, Integer flag);
    //
    Admin getAdminOfId(Integer id);

}
